package com.car.rental.user.model.request;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class DriverLicenseRequest {
    
    @NotBlank(message = "驾驶证号码不能为空")
    private String licenseNumber;
    
    @NotBlank(message = "驾驶员姓名不能为空")
    private String name;
    
    @NotNull(message = "发证日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate issueDate;
    
    @NotNull(message = "有效期截止日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate expireDate;
    
    @NotBlank(message = "准驾车型不能为空")
    private String licenseClass;
    
    @NotBlank(message = "驾驶证照片不能为空")
    private String imageUrl;
    
    private Integer status;  // 认证状态
    private String remark;   // 备注信息
} 